package main

import (
	"crypto/md5"
	"fmt"
	"github.com/anaskhan96/go-password-encoder"
)

func main() {
	// Using the default options

	// Using custom options
	options := &password.Options{10, 10000, 50, md5.New}
	salt, encodedPwd := password.Encode("123456", options)
	check := password.Verify("123456", salt, encodedPwd, options)
	fmt.Println(check) // true
}
